

import { createHashRouter, RouterProvider } from "react-router-dom";
import Main from "./pages/main";
import Setting from "./pages/setting";
import ErrorBoundary from "./pages/errorBoundary";
import Download from "./pages/download";

const routes = createHashRouter([
    {
        path: '/',
        element: <Main />,
        errorElement: <ErrorBoundary />
    },
    {
        path: '/setting',
        element: <Setting />,
        errorElement: <ErrorBoundary />
    },
    {
        path: '/download',
        element: <Download />,
        errorElement: <ErrorBoundary />
    },
])


const Router = () => {

    return <RouterProvider router={routes}/>
}

export default Router;